import {Component, OnInit, ViewEncapsulation, ChangeDetectionStrategy} from '@angular/core';
import {MineService} from "@mine/mine.service";
import {IpAuthCenterVO, SNSResult} from "@interface/index";



@Component({
  selector: 'seed-authentication',
  templateUrl: './authentication.component.html',
  styleUrls: ['./authentication.component.scss'],
  encapsulation: ViewEncapsulation.None,
})
export class AuthenticationComponent implements OnInit {

  public authentications: any;

  constructor(public  mineService: MineService) {
  }

  ngOnInit() {
    this.mineService.getAuthCenter().subscribe((res: SNSResult<IpAuthCenterVO>) => {
      if (res.result === '0') {
        this.authentications = res.data;
      }
    });
  }

}
